
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<script type="text/javascript">
    $(document).ready(function() {
        $('.land-table').dataTable({
            "sPaginationType": "two_button",
            "bShowAll": true
        });
    });
</script>
<div class="page-title">
    <h2><s:label value="%{getText('shortListedCandidatesList.label')}"/></h2>
</div>

<s:if test="hasActionErrors()">
        <s:div id="message-box" class="message-box">
            <div class="action-err">
                <s:label value="%{getText('error_occurred.label')}"/>
                <s:actionerror/>
            </div>
        </s:div>
    </s:if>
    <s:if test="hasActionMessages()">
        <s:div id="message-box" class="message-box">
            <div class="action-msg">
                <s:actionmessage/>
            </div>
        </s:div>
    </s:if>
    <div id="messageBox"></div>
 <fieldset>
<div id="search-lands-form-outer">
    <s:form id="lands-by-alienation-type" name="lands-by-alienation-type">
        <table class="width-100">
            <tr>
                <td><s:label value="%{getText('alienation_method.label')}"/></td>
                <td><s:select list="alienationTypeList" id="alienation-type" name="alienationType"
                              headerValue="%{getText('all.label')}" headerKey="0"/></td>
                <td><s:submit value="%{getText('search.label')}" action="shortListedCandidates"/></td>
            </tr>
        </table>
    </s:form>
</div>

<table class="width-100 margin-10-auto table land-table">
    <thead>
    <tr class="center-align table-header">
        <th><s:label value="%{getText('applied_date')}"/></th>
        <th><s:label value="%{getText('applicant_Name')}"/></th>
        <th><s:label value="%{getText('action.label')}"/></th>
    </tr>
    </thead>
    <tbody>
    <s:iterator status="status1" value="landApplicationList">
        <tr class="<s:if test="#status1.odd == true">able-row-odd</s:if><s:else>table-row-even</s:else>t">
            <td class="center-align"><s:property value="submitDate"/></td>
            <td class="center-align"><s:property value="holder.name"/></td>
            <td class="center-align">
                <s:url id="loadSlcObjectionForm" action="loadSlcObjectionForm">
                    <s:param name="applicationId" value="id"/>
                </s:url>
                <s:a href="%{loadSlcObjectionForm}" title="%{getText('add_objection_tooltip')}">
                    <img src="<s:url value='/images/detailed-form.png'/>" border="none" width="25"
                         height="25"/>
                </s:a>
            </td>
        </tr>
    </s:iterator>
    </tbody>
</table>
     </fieldset>